package ar.com.temporis.manufacturing.domain;

import java.util.Date;

import ar.com.temporis.fixture.manufacturing.ManufacturingOrderFixture;
import ar.com.temporis.framework.domain.Entity;
import ar.com.temporis.framework.persistence.PersistenceTestCase;

/**
 * 
 * @author matias.sulik
 *
 */
public class ManufacturingOrderPersistenceTestCase extends PersistenceTestCase {
	
	private ManufacturingOrderFixture fixture = new ManufacturingOrderFixture();
	
	@Override
	protected Entity createEntity() {	
		return this.fixture.createManufacturingOrder("title", "description", new Date(), new Date());
	}

	@Override
	protected void modify(Entity entity) {
		((ManufacturingOrder) entity).setDescription("adsfasdf");
	}

}
